package com.ruoyi.web.controller.video;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.video.domain.Device;
import com.ruoyi.video.service.IDeviceService;
import com.ruoyi.video.service.MediaService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 视频流控制器
 * @Author: orange
 * @CreateTime: 2025-01-16
 */
@RestController
@RequestMapping("/video/stream")
public class StreamController {

    @Autowired
    private MediaService mediaService;

    @Autowired
    private IDeviceService deviceService;

    @Anonymous
    @GetMapping({"/list"})
    public AjaxResult list() {
        List<Device> devices = this.deviceService.selectDeviceList(null);
        return AjaxResult.success(devices);
    }
}
